import { reqSearchData } from '@/api/search';
import { defineStore } from 'pinia';

export const useSearchStoreListData = defineStore('search', {
  state() {
    return {
      searchData: {}
    };
  },
  actions: {
    // 获取搜索页数据
    async getSearchData(searchParams) {
      const result = await reqSearchData(searchParams);
      this.searchData = result.data;
    },
  },

});
